package com.gp.billsrecord

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import androidx.navigation.findNavController
import androidx.navigation.fragment.NavHostFragment

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val controller =
            (supportFragmentManager.findFragmentById(R.id.fragment_host) as NavHostFragment).navController

        Log.i(TAG, "onCreate: $controller")
    }

    companion object {
        private const val TAG = "MainActivity"
    }
}